package com.bw.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class User {
    private Integer id;
    @NotBlank(message = "用户名不为空")
    private String name;
    @NotBlank(message = "密码不为空")
    private String password;

    private String salt;


}
